/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.mahumLogs.Bean;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 *
 * @author Edouard
 */
@Entity
public class Log implements Serializable {
    
    @Id
    private int idLog;
    
    private String URL;
    @Temporal(TemporalType.DATE)
    private Date dateVisite;
    private String nomDeDomaine;
    private int elapsed;
    private int octet;
    private int resultatRequete;
    
    @ManyToOne(cascade = CascadeType.PERSIST)
    @JoinColumn(name = "FK_MACHINE",insertable = false,updatable = false)
    private Machine machine = new Machine();

    public Log() {
    }

    public int getIdLog() {
        return idLog;
    }

    public void setIdLog(int idLog) {
        this.idLog = idLog;
    }

    public String getURL() {
        return URL;
    }

    public void setURL(String URL) {
        this.URL = URL;
    }

    public Date getDateVisite() {
        return dateVisite;
    }

    public void setDateVisite(Date dateVisite) {
        this.dateVisite = dateVisite;
    }

    public String getNomDeDomaine() {
        return nomDeDomaine;
    }

    public void setNomDeDomaine(String nomDeDomaine) {
        this.nomDeDomaine = nomDeDomaine;
    }

    public int getElapsed() {
        return elapsed;
    }

    public void setElapsed(int elapsed) {
        this.elapsed = elapsed;
    }

    public int getOctet() {
        return octet;
    }

    public void setOctet(int octet) {
        this.octet = octet;
    }

    public int getResultatRequete() {
        return resultatRequete;
    }

    public void setResultatRequete(int resultatRequete) {
        this.resultatRequete = resultatRequete;
    }

    public Machine getMachine() {
        return machine;
    }

    public void setMachine(Machine machine) {
        this.machine = machine;
    }

  
    
    
}
